// pages/recruit/personal/wallet/wallet.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    choosetitle: 1,
    wallet: {
      balance: 1000.12,
      expenditure: [{
          name: "收益",
          date: "2019-11-11",
          money: "60",
          nowbalance: "11111.12"
        },
        {
          name: "工资收入",
          date: "2019-11-11",
          money: "100",
          nowbalance: "10145.12"
        },
      ],
      income: [
        {
          name: "提现",
          date: "2019-11-11",
          money: "100",
          nowbalance: "11030.12"
        },
        {
          name: "会员充值",
          date: "2019-11-11",
          money: "30",
          nowbalance: "11046.12"
        }
      ]
    }
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },
  getCash: function() {
    console.log("收入")
  },
  pushCash: function() {
    console.log("支出")
  },
  switchchoose: function(e) {
    this.setData({
      choosetitle: e.currentTarget.dataset.choose
    })
  }
})